home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 February / EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso / earcd / comm2 / xbtx.lha / Source / Attributes.h < prev    next >
C/C++ Source or Header  |  1995-10-13  |  4KB  |  85 lines

  1. /*
  2. **    $Id: Attributes.h 1.6 1995/10/13 11:45:36 olsen Exp olsen $
  3. **
  4. **    :ts=8
  5. */
  6.  
  7. /*
  8.  * Copyright (c) 1992, 1993 Arno Augustin, Frank Hoering, University of
  9.  * Erlangen-Nuremberg, Germany.
  10.  * All rights reserved.
  11.  *
  12.  * Redistribution and use in source and binary forms, with or without
  13.  * modification, are permitted provided that the following conditions
  14.  * are met:
  15.  * 1. Redistributions of source code must retain the above copyright
  16.  *    notice, this list of conditions and the following disclaimer.
  17.  * 2. Redistributions in binary form must reproduce the above copyright
  18.  *    notice, this list of conditions and the following disclaimer in the
  19.  *    documentation and/or other materials provided with the distribution.
  20.  * 3. All advertising materials mentioning features or use of this software
  21.  *    must display the following acknowledgement:
  22.  *      This product includes software developed by the University of
  23.  *      Erlangen-Nuremberg, Germany.
  24.  * 4. Neither the name of the University nor the names of its contributors
  25.  *    may be used to endorse or promote products derived from this software
  26.  *    without specific prior written permission.
  27.  *
  28.  * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
  29.  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  30.  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO
  31.  * EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  32.  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  33.  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
  34.  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
  35.  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
  36.  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
  37.  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  38.  *
  39.  * This software has not been validated by the ``Bundesamt fuer Zulassungen in
  40.  * der Telekommunikation'' of the ``Deutsche Bundepost Telekom'' and thus
  41.  * must not be used for accessing the BTX-Network of the Telekom in Germany.
  42.  *
  43.  * Diese Software hat keine Zulassung durch das Bundesamt fuer Zulassungen in
  44.  * der Telekommunikation der Deutschen Bundespost Telekom und darf daher nicht
  45.  * am Netz der Deutschen Bundespost Telekom in Deutschland betrieben werden.
  46.  */
  47.  
  48. #ifndef _ATTRIBUTES_H
  49. #define _ATTRIBUTES_H 1
  50.  
  51. #define ATTR_UNDERLINE  0x00001
  52. #define ATTR_FLASH      0x00002
  53. #define ATTR_INVERTED   0x00008
  54. #define ATTR_WINDOW     0x00010
  55. #define ATTR_PROTECTED  0x00020
  56. #define ATTR_MARKED     0x00040
  57. #define ATTR_CONCEALED  0x00080
  58. #define ATTR_YDOUBLE    0x00100
  59. #define ATTR_XDOUBLE    0x00200
  60.  
  61. #define ATTR_FOREGROUND 0x00400  /* only for set_attr() !! */
  62. #define ATTR_BACKGROUND 0x00800  /*  "  */
  63. #define ATTR_NODOUBLE   0x01000  /*  "  */
  64. #define ATTR_XYDOUBLE   0x02000  /*  "  */
  65. #define ATTR_SIZE       0x04000
  66. #define ATTR_ANYSIZE    (ATTR_NODOUBLE|ATTR_XDOUBLE|ATTR_YDOUBLE|ATTR_XYDOUBLE)
  67.  
  68.  
  69. #define attrib(y,x,a)    ((screen[(y)-1][(x)-1].attr & (a)) > 0)
  70. #define realattr(y,x,a)  ((screen[(y)-1][(x)-1].real & (a)) > 0)
  71. #define attr_fg(y,x)     screen[(y)-1][(x)-1].fg
  72. #define attr_bg(y,x)     screen[(y)-1][(x)-1].bg
  73.  
  74. #define BLACK        0
  75. #define RED          1
  76. #define GREEN        2
  77. #define YELLOW       3
  78. #define BLUE         4
  79. #define MAGENTA      5
  80. #define CYAN         6
  81. #define WHITE        7
  82. #define TRANSPARENT  8
  83.  
  84. #endif    // _ATTRIBUTES_H
  85.